﻿#include "InstructionTurnTableEmergencyStop.h"

__SCRIPTINSTRUCTION_REGISTER(InstructionTurnTableEmergencyStop,ScriptInstruction::Instruction_TurnTable_EmergencyStop,&InstructionTurnTableEmergencyStop::fromByteArray1);

InstructionTurnTableEmergencyStop::InstructionTurnTableEmergencyStop()
{
  instructionFlag = Instruction_TurnTable_EmergencyStop;
}

InstructionTurnTableEmergencyStop::InstructionTurnTableEmergencyStop(InstructionTurnTableEmergencyStop const& instructionTurnTableEmergencyStop)
{
  *this=instructionTurnTableEmergencyStop;
}

InstructionTurnTableEmergencyStop& InstructionTurnTableEmergencyStop::operator=(InstructionTurnTableEmergencyStop const & instructionTurnTableEmergencyStop)
{
  *(ScriptInstruction*)this=instructionTurnTableEmergencyStop;
  return *this;
}

InstructionTurnTableEmergencyStop::~InstructionTurnTableEmergencyStop()
{
}

QString InstructionTurnTableEmergencyStop::toString()
{
  return QStringLiteral("转台急停");
}

QByteArray InstructionTurnTableEmergencyStop::toByteArray()
{
  return ScriptInstruction::toByteArray();
}

InstructionTurnTableEmergencyStop* InstructionTurnTableEmergencyStop::clone()
{
  return new InstructionTurnTableEmergencyStop(*this);
}

ScriptInstruction* InstructionTurnTableEmergencyStop::fromByteArray1(char * const src,int size,int * offset)
{
  (void)src;
  (void)size;
  (void)offset;
  return new InstructionTurnTableEmergencyStop();
}
